package com.witdata.common.mapper;

import com.witdata.common.domain.dto.ArticleCommentDto;
import com.witdata.common.domain.dto.ArticleSubCommentDto;
import com.witdata.mysql.domain.entity.TArticleComment;
import com.witdata.mysql.domain.entity.TArticleSubComment;
import com.witdata.mysql.domain.entity.TCommunityArticle;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author LiuQi
 */
@Mapper
public interface ArticleCommentMapper {

    ArticleCommentMapper INSTANCE = Mappers.getMapper(ArticleCommentMapper.class);

    List<ArticleCommentDto> toArticleCommentDtoList(List<TArticleComment> tArticleCommentList);

    TArticleComment toTArticleComment(ArticleCommentDto articleCommentDto);

    TArticleSubComment toTArticleSubComment(ArticleSubCommentDto articleSubCommentDto);

    List<ArticleSubCommentDto> toArticleSubCommentDtoList(List<TArticleSubComment> tArticleSubCommentList);
}
